package FourArithmeticOperations;

/**
 * Created by dell on 2017/5/11.
 */
import java.util.Random;
import java.util.function.IntToDoubleFunction;

public class integer {
    private int num;

    public int getNum() {
        return num;
    }

    public integer(int num) {
        this.num = num;
    }

    public int add(integer op1) {
        int answer = num + op1.num;
        return answer;
    }

    public int reduce(integer op1) {
        int answer = num - op1.num;
        return answer;
    }

    public int ride(integer op1) {
        int answer = num * op1.num;
        return answer;
    }

    public int excepet(integer op1) {
        int answer = num / op1.num;
        return answer;
    }

    public static integer obj() {
        Random ran = new Random();
        return new integer(ran.nextInt(20) - 10);
    }

}


